import requests
import json


def reset_captcha(phone):
    url = "http://172.31.120.120:8120/test/reset"

    payload = "{\n    data: {\n        \"phone\": \"%s\",\n        \"evn\": \"beta\"\n    }\n}" % phone
    headers = {
        'User-Agent': 'Apifox/1.0.0 (https://apifox.com)',
        'Content-Type': 'application/json'
    }

    response = requests.request("POST", url, headers=headers, data=payload)

    print(response.text)


if __name__ == '__main__':
    # 输入手机号，重新验证码为123456
    reset_captcha('17600621582')
